/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package asaexpr;

/**
 *
 * @author Florian
 */
public class ASAExprNegatif extends ASAExpr {

    private ASAExpr e1;
    
    public ASAExprNegatif(ASAExpr e1){
        this.e1 = e1;
    }
    
    @Override
    public ASAExpr getExpr1() {
        return e1;
    }

    @Override
    public ASAExpr getExpr2() {
        return null;
    }
    
    @Override
    public int evalue() {
        return e1.getValeur() * -1;
    }

    @Override
    public String getLabelExplorateur() {
        return "MOINS_UN = " + this.evalue();
    }
}
